<?php
class CommonPage extends TPage
{
        
    
    public function __construct()
    {
        parent::__construct();
        
        $form = new TForm;
        $form->class = 'tform';

        $form2 = new TForm;
        $form2->class = 'tform';        
        
        $link = new TElement('a');
        $link->generator = 'adianti';
        $link->href = 'index.php?class=SystemGroupList';
        $link->add('Cadastro de Grupo');
        
        $link1 = new TElement('a');
        $link1->generator = 'adianti';
        $link1->href = 'index.php?class=SystemuserList';
        $link1->add('Cadastro de Usuário');

        $link2 = new TElement('a');
        $link2->generator = 'adianti';
        $link2->href = 'index.php?class=SystemuserList';
        $link2->add('Gastos com material de escritório acima do valor permitido.');

        $link3 = new TElement('a');
        $link3->generator = 'adianti';
        $link3->href = 'index.php?class=SystemuserList';
        $link3->add('Aviso de vencimento de impostos para o dia 30/07/2015');

     
        $table = new TTable;
        $table->addRowSet(new TLabel('Atalhos'))->class = 'tformtitle';
        $table->addRowSet($link);
        $table->addRowSet($link1);
        $table->style = 'width: 400px';
        
        $table2 = new TTable;
        $table2->addRowSet(new TLabel('Notificações pendentes'))->class = 'tformtitle';
        $table2->addRowSet($link2);
        $table2->addRowSet($link3);
        $table2->style = 'width: 100%';
        
        $form->add($table);
        $form2->add($table2);
        
        $box = new THBox;
        $box->add($form);
        //$box->add($form2);
        
        parent::add($form2);        
        parent::add($box);
        
    }
}
?>